package com.pl.dao;  

import java.util.List;

import org.apache.ibatis.annotations.Delete;

import com.pl.bean.ManageRolePageBean;

/**
 * 
 */
public interface ManageRolePageBeanDao {

	/**
	 * 新增
	 */
	public void addManageRolePageBean(ManageRolePageBean manageRolePageBean);

	/**
	 * 修改
	 */
	public void updateManageRolePageBean(ManageRolePageBean manageRolePageBean);
	
	/**
	 * 删除角色菜单
	 */
	@Delete("delete from manage_role_page where manage_role_id = #{roleId}")
	public void deletePageByRole(long roleId);
	
	/**
	 * 根据条件获得数量
	 */
	public int getManageRolePageBeanNum(ManageRolePageBean manageRolePageBean);
	
	/**
	 * 根据条件获得数据
	 */
	public List<ManageRolePageBean> getManageRolePageBean(ManageRolePageBean manageRolePageBean);

}
